﻿using System.ComponentModel;

namespace RoutedWizard
{
    public class RoutedWizardViewModel : INotifyPropertyChanged
    {
        private bool _showAdvancedOptions = true;

        public event PropertyChangedEventHandler PropertyChanged;

        public bool ShowAdvancedOptions
        {
            get { return _showAdvancedOptions; }
            set
            {
                if (_showAdvancedOptions != value)
                {
                    _showAdvancedOptions = value;
                    RaisePropertyChanged(new PropertyChangedEventArgs("ShowAdvancedOptions"));
                }
            }
        }

        protected void RaisePropertyChanged(PropertyChangedEventArgs e)
        {
            var temp = PropertyChanged;
            if (temp != null)
            {
                temp(this, e);
            }
        }
    }
}
